﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Infrastructure.Filters
{
    [AttributeUsage(AttributeTargets.Field)]
    public class ResponseStateAttribute : System.Attribute
    {
        private readonly string _message = string.Empty;
        private readonly int _responseCode = 0;
        public ResponseStateAttribute(int code , string message)
        {
            this._message = message;
            this._responseCode = code;
        }
        public string Message
        {
            get
            {
                return this._message;
            }
        }
        public int Code
        {
            get
            {
                return this._responseCode;
            }
        }
    }
}
